package com.roundarch.www.model;

import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

import org.hibernate.validator.constraints.NotEmpty;

import com.roundarch.www.DataEntity;

public class User extends DataEntity {

	private static final long serialVersionUID = 1L;

	private String userName;
	private String password;
	private UserDetail userDetail;
	private Authorities authorities;

	public Authorities getAuthorities() {
		return authorities;
	}

	public void setAuthorities(Authorities authorities) {
		this.authorities = authorities;
	}

	@NotEmpty(message = "Password cannot be empty")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		
		this.password = password;
	}

	public UserDetail getUserDetail() {
		return userDetail;
	}

	public void setUserDetail(UserDetail userDetail) {
		this.userDetail = userDetail;
	}

	@NotEmpty(message = "User Name cannot be empty")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
}
